window: Don't let solid-csd linger
authorMatthias Clasen <mclasen@redhat.com>
Sat, 24 Apr 2021 15:29:19 +0000 (11:29 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 24 Apr 2021 15:29:19 +0000 (11:29 -0400)
Just from reading the code, it seems that we
should unset .csd and .solid-csd at the same
time, since the are mutually exclusive and
we unset them here so realize() can set one
of them again.

gtk/gtkwindow.c

index 88a4e9721a3c1fd0b85bbd531e2b46cc3eec1548..d7048ed41260a757bb9c5624d129a0b5f6bdcc94 100644 (file)
@@ -3038,8 +3038,10 @@ gtk_window_set_titlebar (GtkWindow *window,
 
   if (titlebar == NULL)
     {
+      /* these are updated in realize() */
       priv->client_decorated = FALSE;
       gtk_widget_remove_css_class (widget, "csd");
+      gtk_widget_remove_css_class (widget, "solid-csd");
 
       goto out;
     }